package com.zcup.designer.construct.facade;

public class Facade {
    SubSystemOne one;
    SubSystemTwo two;
    SubSystemThree three;

    public Facade() {
        one = new SubSystemOne();
        two = new SubSystemTwo();
        three = new SubSystemThree();
    }

    public void methodA() {
        System.out.println("======================");
        one.methodOne();
        two.methodTwo();
        System.out.println("======================");

    }

    public void methodB() {
        System.out.println("======================");

        one.methodOne();
        three.methodThree();
        System.out.println("======================");

    }

    public void methodC() {
        System.out.println("======================");

        two.methodTwo();
        three.methodThree();
        System.out.println("======================");

    }

    public void methodD() {
        System.out.println("======================");

        one.methodOne();
        two.methodTwo();
        three.methodThree();
        System.out.println("======================");

    }
}
